package com.example.demo.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

/**
 * 培训系统-作业-题目关系
 * @TableName train_homework_problem
 */
public class TrainHomeworkProblem implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 作业id
     */
    private Long homeworkId;

    /**
     * 题目id
     */
    private Long problemId;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 分数占比
     */
    private Integer score;

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Long getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 作业id
     */
    public Long getHomeworkId() {
        return homeworkId;
    }

    /**
     * 作业id
     */
    public void setHomeworkId(Long homeworkId) {
        this.homeworkId = homeworkId;
    }

    /**
     * 题目id
     */
    public Long getProblemId() {
        return problemId;
    }

    /**
     * 题目id
     */
    public void setProblemId(Long problemId) {
        this.problemId = problemId;
    }

    /**
     * 状态
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 状态
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 分数占比
     */
    public Integer getScore() {
        return score;
    }

    /**
     * 分数占比
     */
    public void setScore(Integer score) {
        this.score = score;
    }


    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", homeworkId=").append(homeworkId);
        sb.append(", problemId=").append(problemId);
        sb.append(", status=").append(status);
        sb.append(", score=").append(score);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}